package org.gitos.cloud.util;

import java.util.List;

public class Pagination<T> {
	private int total = 0;
	private List<T> rows;

	public Pagination(List<T> rows) {
		if (rows == null) {
			return;
		}
		this.total = rows.size();
		this.rows = rows;
	}

	public int getTotal() {
		return total;
	}

	public List<T> getRows() {
		return rows;
	}

}
